home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Windows News 2005 November
/
WNnov2005.iso
/
Windows
/
Indispensables
/
Movie Collection
/
MovieCollection5403.exe
/
{app}
/
web
/
Default
/
index.xsl
< prev
next >
Wrap
Extensible Markup Language
|
2005-04-21
|
12KB
|
232 lines
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="header.xsl"/>
<xsl:output method="html" media-type="text/html; charset=ISO-8859-1"/>
<xsl:template match="/">
<html>
<head>
<title><xsl:value-of select="datapacket/@title"/></title>
<link rel="stylesheet" type="text/css" href="mc.css" />
</head>
<body>
<table cellpadding="0" cellspacing="0" width="100%" border="0">
<!-- EntΩte -->
<tr><td width="100%">
<xsl:call-template name="template_header" />
</td></tr>
<tr>
<td width="100%">
<table cellpadding="0" cellspacing="0" width="100%" border="0">
<tr>
<td width="100%" class="gt0deg">
<xsl:if test="not(//datapacket/@php=1)"><a href="disconnect" class="lktoolbar">DΘconnecter</a> | </xsl:if><a href="mailto: babidyxp@free.fr" class="lktoolbar">Powered by MovieCollection ⌐ Babidyxp</a>
</td>
<td width="100%" class="gt0deg">
<xsl:value-of select="datapacket/@servername" />
</td>
</tr>
</table>
</td>
</tr>
<!-- Fin EntΩte -->
<xsl:if test="//top10ajouts/@boxoffice=1">
<tr>
<td width="100%" class="parAction">
<table cellpadding="0" cellspacing="0">
<tr>
<td class="parAction">
<img src="images/boxoffice.gif" />
</td>
<td class="parAction">
Le box office
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="100%">
<div align="center">
<xsl:call-template name="boucle" />
</div>
</td>
</tr>
</xsl:if>
<tr>
<td width="100%" class="parAction">
<table cellpadding="0" cellspacing="0">
<tr>
<td class="parAction">
<img src="images/i.p.search.gif" />
</td>
<td class="parAction">
Rechercher un film
</td>
</tr>
</table>
</td>
</tr>
<tr><td width="100%">
<form name="formSearchFilms" method="post" action="films" >
<p style="margin: 10px;" />
<div align="center">
<table cellpadding="0" cellspacing="0" width="340" border="0">
<tr><td width="100%" class="pageHeader"><img src="images/trans_pixel.gif" width="1" height="2" /></td></tr>
<tr>
<td width="100%" class="gt1">
<p style="margin-top: 10px; margin-bottom: 10px; margin-right: 0px; margin-left: 10px;">
<b>Rechercher dans Movie Collection</b>
</p>
<p style="margin-top: 0px; margin-bottom: 0px; margin-right: 0px; margin-left: 10px;">
Collection:
</p>
<p style="margin-top: 0px; margin-bottom: 10px; margin-right: 0px; margin-left: 10px;">
<select name="selectCollection" style="width:310px" >
<option selected="1" value="-1">(Toutes)</option>
<xsl:for-each select="//collections/collection">
<option>
<xsl:attribute name="value">
<xsl:value-of select="@idx"/>
</xsl:attribute>
<xsl:value-of select="@nom"/>
</option>
</xsl:for-each>
</select>
</p>
<p style="margin-top: 0px; margin-bottom: 0px; margin-right: 0px; margin-left: 10px;">
CatΘgorie:
</p>
<p style="margin-top: 0px; margin-bottom: 10px; margin-right: 0px; margin-left: 10px;">
<select name="selectCategorie" style="width:310px" >
<option selected="1" value="-1">(Toutes)</option>
<xsl:for-each select="//categories/categorie">
<option>
<xsl:attribute name="value">
<xsl:value-of select="@idx"/>
</xsl:attribute>
<xsl:value-of select="@nom"/>
</option>
</xsl:for-each>
</select>
</p>
<p style="margin-top: 0px; margin-bottom: 0px; margin-right: 0px; margin-left: 10px;">
CritΦres:
</p>
<p style="margin-top: 0px; margin-bottom: 10px; margin-right: 0px; margin-left: 10px;">
<input type="text" name="textMots" size="45" maxlength="60" style="width:310px" value="" />
</p>
<p style="margin-top: 0px; margin-bottom: 10px; margin-right: 0px; margin-left: 10px;">
<input type="submit" name="submitRechercher" class="mcbutton" value="Rechercher" />
<a href="films">Voir Liste complΦte</a>
</p>
</td>
</tr>
<tr><td width="100%" class="pageHeader"><img src="images/trans_pixel.gif" width="1" height="2" /></td></tr>
</table>
<!-- Dernier films ajoutΘs -->
<br />
<table cellpadding="0" cellspacing="0" width="340" border="0">
<tr><td width="100%" class="pageHeader"><img src="images/trans_pixel.gif" width="1" height="2" /></td></tr>
<tr>
<td width="100%" class="gt1">
<p style="margin-top: 10px; margin-bottom: 10px; margin-right: 0px; margin-left: 10px;">
<b><xsl:value-of select="count(//top10ajouts/top10ajout)" /> derniers films ajoutΘs</b>
</p>
<xsl:for-each select="//top10ajouts/top10ajout">
<p style="margin-top: 0px; margin-bottom: 0px; margin-right: 0px; margin-left: 10px;">
<xsl:value-of select="@dateajout" /> :
<a>
<xsl:attribute name="href">
film?idx=<xsl:value-of select="@idx"/>
</xsl:attribute>
<xsl:value-of select="@nom"/>
</a>
</p>
</xsl:for-each>
</td>
</tr>
<tr><td width="100%" class="pageHeader"><img src="images/trans_pixel.gif" width="1" height="2" /></td></tr>
</table>
<!-- FilmsprΘtΘs -->
<xsl:if test="not(count(//emprunts/emprunt)='0')">
<br />
<table cellpadding="0" cellspacing="0" width="340" border="0">
<tr><td width="100%" class="pageHeader"><img src="images/trans_pixel.gif" width="1" height="2" /></td></tr>
<tr>
<td width="100%" class="gt1">
<p style="margin-top: 10px; margin-bottom: 10px; margin-right: 0px; margin-left: 10px;">
<b><xsl:value-of select="count(//emprunts/emprunt)" /> film(s) prΘtΘ(s)</b>
</p>
<xsl:for-each select="//emprunts/emprunt">
<p style="margin-top: 0px; margin-bottom: 0px; margin-right: 0px; margin-left: 10px;">
<a>
<xsl:attribute name="href">
film?idx=<xsl:value-of select="@idx"/>
</xsl:attribute>
<xsl:value-of select="@film"/>
</a>
<xsl:if test="@late_bool='1'">
<font color="red"> (En retard)</font>
</xsl:if>
</p>
</xsl:for-each>
</td>
</tr>
<tr><td width="100%" class="pageHeader"><img src="images/trans_pixel.gif" width="1" height="2" /></td></tr>
</table>
</xsl:if>
</div>
</form>
</td></tr>
</table>
</body>
</html>
</xsl:template>
<xsl:template name="boucle">
<xsl:param name="i" select="0" />
<xsl:param name="numVignette" select="5" />
<xsl:param name="count" select="ceiling(count(//top10ajouts/top10ajout) div $numVignette)" />
<xsl:if test="$count > 0">
<table>
<tr>
<xsl:for-each select="//top10ajouts/top10ajout[floor((position()-1) div $numVignette)=$i]">
<td class="gtBoxOffice" width="143" align="center" valign="top">
<img>
<xsl:attribute name="src">getimg?idx=<xsl:value-of select="@idx"/></xsl:attribute>
</img>
</td>
</xsl:for-each>
</tr>
<tr>
<xsl:for-each select="//top10ajouts/top10ajout[floor((position()-1) div $numVignette)=$i]">
<td class="gtBoxOffice" width="143" align="center" valign="top">
<a><xsl:attribute name="href">film?idx=<xsl:value-of select="@idx"/></xsl:attribute><xsl:value-of select="@nom"/></a>
</td>
</xsl:for-each>
</tr>
</table>
</xsl:if>
<xsl:if test="$i < $count">
<xsl:call-template name="boucle">
<xsl:with-param name="i" select="($i)+1" />
<xsl:with-param name="count" select="$count" />
</xsl:call-template>
</xsl:if>
</xsl:template>
</xsl:stylesheet>